package elephant.rpcserver;

import elephant.Container;
import elephant.servers.rpcserver.RPCServer;

/**
 * 
 * @author skydu
 *
 */
public class DemoRPCServer {

	public static void main(String[] args) throws Exception {
		Container container=Container.get();
		//
		RPCServer rpcServer=new RPCServer();
		rpcServer.registerService(DemoService.class,new DemoServiceImpl());
		rpcServer.setPort(5001);
		container.registerServer(rpcServer);
		//
		container.init();
		container.start();
	}
	
}
